var express = require("express");
var router = express.Router();
var {commentModel,titleModel} = require('../module/mbw_db')
//新闻资讯列表
router.get('/list',async(req,res)=>{
  let data = await titleModel.find().populate('cid')
  res.send({
    code:200,
    msg:'新闻列表渲染',
    data:data
  })
})

module.exports = router;
